﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MessageSend.aspx.cs" Inherits="MedicareNoteManagerWeb.Web.MessageSend" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        a { text-decoration: none; } 
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <center>
        <div style="width:96%; margin-top:3%">
            <table width="100%">
                <tr>
                    <td>
                        
                    </td>
                </tr>
                <tr>
                    <td style="padding-top:1%">
                        <asp:GridView ID="gv_Send" runat="server" AutoGenerateColumns="False" 
                            AllowPaging="True" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" 
                            BorderWidth="1px" CellPadding="3" 
                            onpageindexchanging="gv_Send_PageIndexChanging">
                        <EmptyDataTemplate>
                            <div style="background-color: #FFFFD6; color: #ff0000; text-align: center; font-size: 18px">
                                暂时没有要发送的短信计划！
                            </div>
                        </EmptyDataTemplate>
                        <AlternatingRowStyle CssClass="l-grid-row" />
                        <Columns>
                        <asp:TemplateField HeaderText="计划ID" Visible="false">
                            <ControlStyle CssClass="l-grid" />
                            <ItemStyle  Width="10%" />
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lbl_PlanID" Text='<%# Eval("planid") %>'></asp:Label>
                                <asp:LinkButton ID="lkb_send" runat="server">发送</asp:LinkButton>
                            
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="计划名称">
                            <ControlStyle CssClass="l-grid" />
                            <ItemStyle  Width="24%" />
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lbl_PlanName" Text='<%# Eval("planname") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="计划说明">
                            <ControlStyle CssClass="l-grid" />
                            <ItemStyle  Width="45%" />
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lbl_PlanExplain" Text='<%# Eval("planexplain") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="发送时间">
                            <ControlStyle CssClass="l-grid" />
                            <ItemStyle  Width="10%" />
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lbl_PlanSendTime" Text='<%# Eval("sendtime") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ControlStyle CssClass="l-grid" />
                            <ItemStyle  Width="10%" HorizontalAlign="Center" />
                            <ItemTemplate>
                                <asp:LinkButton ID="lkb_send" runat="server">发送</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="White" ForeColor="#000066" />
                        <HeaderStyle CssClass="l-grid-row" BackColor="#006699" Font-Bold="True" 
                            ForeColor="White" HorizontalAlign="Left" />
                        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="right" />
                        <PagerTemplate>
                        当前第:
                        <asp:Label ID="LabelCurrentPage" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"></asp:Label>
                        页/共:
                        <asp:Label ID="LabelPageCount" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageCount %>"></asp:Label>
                        页
                        <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                            Visible='<%#((GridView)Container.NamingContainer).PageIndex != 0 %>'>首页</asp:LinkButton>
                        <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
                            CommandName="Page" Visible='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'>上一页</asp:LinkButton>
                        <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                            Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>下一页</asp:LinkButton>
                        <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                            Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>尾页</asp:LinkButton>
                        转到第
                        <asp:TextBox ID="txtNewPageIndex" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>' />页
                        <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="-2"
                            CommandName="Page" Text="GO" />
                        </PagerTemplate>
                        <RowStyle CssClass="l-grid-row" ForeColor="#000066" HorizontalAlign="Left" />
                        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                        <SortedAscendingCellStyle BackColor="#F1F1F1" />
                        <SortedAscendingHeaderStyle BackColor="#007DBB" />
                        <SortedDescendingCellStyle BackColor="#CAC9C9" />
                        <SortedDescendingHeaderStyle BackColor="#00547E" />
                        </asp:GridView>
                    </td>
                </tr>
            </table>
            </div>
        </center>
    </div>
    </form>
</body>
</html>
